package org.jiangy.authentication.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Collection;
import java.util.HashSet;

/**
 * [OAuth2.1] 资源服务器属性模型
 * <p>创建时间: 2023/3/3 </p>
 *
 * @author <a href="mailto:jiangliu0316@dingtalk.com" rel="nofollow">蒋勇</a>
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "security")
public class SecurityProperties {

    /**
     * 端点白名单
     */
    private Collection<String> whiteList = new HashSet<>();
    /**
     * 允许跨域的远程主机列表
     */
    private Collection<String> allowedOriginList = new HashSet<>();
}
